//
//  LLGeneralSwitchCellModel.h
//  TaoTuo
//
//  Created by admin on 2019/11/8.
//  Copyright © 2019 admin. All rights reserved.
//

#import "LLGeneralCellModel.h"
@class LLGeneralSwitchCellModel;

typedef void(^SwitchChangeValueBlock)(LLGeneralSwitchCellModel *switchCellModel, UISwitch *mySwitch);

NS_ASSUME_NONNULL_BEGIN

@interface LLGeneralSwitchCellModel : LLGeneralCellModel

@property (nonatomic, copy) SwitchChangeValueBlock switchBlock;
@property (nonatomic, assign) BOOL isOn;

+ (id)setModelWithImageName:(NSString * _Nullable)imageName
                      title:(NSString *)title
    contentAttributedString:(NSMutableAttributedString * _Nullable)contentAttributedString
                switchBlock:(SwitchChangeValueBlock)switchBlock
                       isOn:(BOOL)isOn;

+ (id)setModelWithImageName:(NSString * _Nullable)imageName
                      title:(NSString *)title
    contentAttributedString:(NSMutableAttributedString * _Nullable)contentAttributedString
     detailAttributedString:(NSMutableAttributedString * _Nullable)detailAttributedString
                switchBlock:(SwitchChangeValueBlock)switchBlock
                       isOn:(BOOL)isOn;

@end

NS_ASSUME_NONNULL_END
